package com.bjsxt.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 实名认证审核信息
 */
@ApiModel(value = "com-bjsxt-domain-UserAuthAuditRecord")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_auth_audit_record")
public class UserAuthAuditRecord {
    public static final String COL_ID = "id";
    public static final String COL_AUTH_CODE = "auth_code";
    public static final String COL_USER_ID = "user_id";
    public static final String COL_STATUS = "status";
    public static final String COL_REMARK = "remark";
    public static final String COL_STEP = "step";
    public static final String COL_AUDIT_USER_ID = "audit_user_id";
    public static final String COL_AUDIT_USER_NAME = "audit_user_name";
    public static final String COL_CREATED = "created";
    /**
     * 主键
     * 这里后台的数据库是没有自增主键的，那么这里写 auto 就是不对的，所以改成雪花算法 ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 对应user_auth_info表code
     */
    @TableField(value = "auth_code")
    @ApiModelProperty(value = "对应user_auth_info表code")
    private Long authCode;
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    /**
     * 状态1同意2拒絕
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态1同意2拒絕")
    private Byte status;
    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 当前审核级数
     */
    @TableField(value = "step")
    @ApiModelProperty(value = "当前审核级数")
    private Byte step;
    /**
     * 审核人ID
     */
    @TableField(value = "audit_user_id")
    @ApiModelProperty(value = "审核人ID")
    private Long auditUserId;
    /**
     * 审核人
     */
    @TableField(value = "audit_user_name")
    @ApiModelProperty(value = "审核人")
    private String auditUserName;
    /**
     * 创建时间
     */
    @TableField(value = "created", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date created;
}